<?
$params[sid] = $sid;
$params[action] = "add_domain";
//$params[reg_domain_success]='yes';
$url = "$baseURL/$webDIR/?".encode_params($params);

$url1="$remoteUpgradeURL?";
$data[action] = 'total';
$data[type] = 'res_regdomain';
$data[wal_proc] = 'yes';

$data[info] = $GLOBALS[info];
$data[return_url] = $url;

if(is_array($data)){
	while(list($k,$v) = each($data)){
                if($v){
                        if(is_array($v)){
                                while(list($k1,$v1) =each($v)){
                                         if($v1) $options .= "&$k"."[".$k1."]=".urlencode($v1);
                                }
                        }else {
                                $options .= "&$k=".urlencode($v);
                        }
                }
        }
        $url1 = $url1.$options;
}

include($url1);

?>